<!--
        *后台订单列表页面
        * 
        *
        * @author      3+1项目组.freedom
        * @version     2018-01-30 19:45    
-->
{extend name="AdminPublic:public"}
{block name="admin"}
  <div class="mws-panel grid_8"> 
   <div class="mws-panel-header"> 
    <span><i class="icon-table"></i>订单列表</span> 
   </div> 
   <div class="mws-panel-body no-padding"> 
    <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
     <form action="/adminorder/index">
     <div class="dataTables_filter" id="DataTables_Table_1_filter">
      <label>请输入订单号: <input type="text" name="keywords" aria-controls="DataTables_Table_1" /></label>
      <input type="submit" value="搜索订单" class="btn btn-info">
     </div>
     </form>
     <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info"> 
      <thead> 
       <tr role="row">
        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" >ID</th>

        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" >订单日期</th>

        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" >订单号</th>

        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending" >总金额</th>

        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" >订单状态</th>

        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" >联系人</th>

        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" >会员id</th>

        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" >地址</th>

        <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" >操作</th>
       </tr> 
      </thead> 
      <tbody role="alert" aria-live="polite" aria-relevant="all">
        {foreach name="list" item="value"}
       <tr class="odd" align="center"> 
        <td class=" sorting_1">{$value['id']}</td> 
        <td class=" ">{$value['time']|date='Y-m-d',###}</td> 
        <td class=" ">{$value['orderid']}</td> 
        <td class=" ">{$value['money']}</td>
        {if condition="($value.status eq 0)"}  
        <td><a href="javascript:void(0)" class="btn">未付款</a></td>
        {elseif condition="($value.status eq 1)"}  
        <td>
          <a href="javascript:void(0)" class="btn">已付款</a>
          <a href="/adminorder/deliver/id/{$value['id']}" class="btn btn-info">去发货</a>
        </td>
        {elseif condition="($value.status eq 2)"}  
        <td>
          <a href="javascript:void(0)" class="btn">已发货</a>
          <a href="javascript:void(0)" class="btn">未签收</a>
        </td> 
        {elseif condition="($value.status eq 3)"} 
        <td>
          <a href="javascript:void(0)" class="btn">已签收</a>
          <a href="javascript:void(0)" class="btn">未评价</a>
        </td> 
        {elseif condition="($value.status eq 4)"}  
        <td>
          <a href="javascript:void(0)" class="btn">已评价</a>
          <a href="javascript:void(0)" class="btn btn-info">查看评价</a>
        </td>        
        {else/} 
         <td><a href="javascript:void(0)" class="btn">无效订单</a></td> 
        {/if}
        <td class=" ">{$value['linkname']}</td> 
        <td class=" ">{$value['uid']}</td> 
        <td class=" ">{$value['site']}</td> 
        <td class=" "><a href="/orderdetail/orderdetail/id/{$value['id']}" class="btn btn-info">订单详情</a></td> 
       </tr>
        {/foreach}
      </tbody>
     </table>
     <div class="dataTables_paginate paging_full_numbers" id="pages">
      {$list->appends($request)->render()}
     </div>
    </div> 
   </div> 
  </div>
 </body>
</html>
{/block}
{block name="title"}后台订单列表{/block}

